import json

# 读取extracted_data.json文件
with open('d:/YXT_Project/llama-factory-experiments/data/extracted_data.json', 'r', encoding='utf-8') as f:
    data = json.load(f)

# 初始化计数器
true_count = 0
false_count = 0

# 统计TRUE和FALSE的数量
for item in data:
    if item.get("output") == "TRUE":
        true_count += 1
    elif item.get("output") == "FALSE":
        false_count += 1

# 输出统计结果
print(f"TRUE的数量: {true_count}")
print(f"FALSE的数量: {false_count}")
print(f"总计: {true_count + false_count}")